class PostTypeRel < ApplicationRecord
  belongs_to :post, class_name: "Post"
  belongs_to :post_type, class_name: "PostType"
  validates :post_id, presence: true
  validates :post_type_id, presence: true
end
